package cn.yunhe.pojo;

public class NewsDemo {
    private int newId;
    private String title;
    private String context;
    private String pic;
    private String writeTime;
    private  BoardDemo boarddemo;
    private UserDemo userdemo ;

    public NewsDemo() {
    }

    public NewsDemo(int newId, String title, String context, BoardDemo boarddemo) {
        this.newId = newId;
        this.title = title;
        this.context = context;
        this.boarddemo = boarddemo;
    }

    public NewsDemo(String title, String context, String writeTime, BoardDemo boarddemo, UserDemo userdemo) {
        this.title = title;
        this.context = context;
        this.writeTime = writeTime;
        this.boarddemo = boarddemo;
        this.userdemo = userdemo;
    }

    public int getNewId() {
        return newId;
    }

    public void setNewId(int newId) {
        this.newId = newId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getWriteTime() {
        return writeTime;
    }

    public void setWriteTime(String writeTime) {
        this.writeTime = writeTime;
    }

    public BoardDemo getBoarddemo() {
        return boarddemo;
    }

    public void setBoarddemo(BoardDemo boarddemo) {
        this.boarddemo = boarddemo;
    }

    public UserDemo getUserdemo() {
        return userdemo;
    }

    public void setUserdemo(UserDemo userdemo) {
        this.userdemo = userdemo;
    }
}
